import React, { Component } from 'react';
import {BrowserRouter as Router,Route} from 'react-router-dom'
import Login from './Login'
import AdminIndex from './Admin'
// import ArticleList from './ArticleList'

function Main(){
    return(
        <Router>
            {/*路由跳转到相应的login组件*/}
            <Route path='/' exact component={Login}></Route>

            <Route path='/index/' exact component={AdminIndex}></Route>
            <Route path="/index/add/" exact   component={AdminIndex} />
            <Route path="/index/save/:id"  exact   component={AdminIndex} />
            
            <Route path='/index/list' exact component={AdminIndex}></Route>
        </Router>
    )
}
export default Main
